package com.hualan.service;

import com.hualan.domain.Teacher;
import com.hualan.mapper.TeacherMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherServicecui {
    @Autowired
    private TeacherMapper teacherMapper;

    //通过id查询
    public Teacher findTeacherById(Long id){
        return teacherMapper.selectByPrimaryKey(id);
    }
}
